const Mock = require("mockjs");

// const data = Mock.mock({
//     "data|10": [
//         {
//             title: "@ctitle(10,20)",
//             name: "@cname",
//             img: "@image(50x50,@color)",
//             id: "@id"
//         },
//     ],
// })
// module.exports=data

Mock.mock("/gteList", () => {
  return Mock.mock({
    "list|20": [
      {
        title: "@ctitle(10,20)",
        tttle: "@ctitle(3,5)",
        name: "@cname",
        img: "@image(100x100,@color)",
        "id|+1": 1,
        "num|100-99999": 1,
        "nnum|1-30": 1,
      },
    ],
    code: 2000,
  });
});
Mock.mock("/get1", () => {
  return Mock.mock({
    "list|10": [
      {
        title: "@ctitle(7,20)",
        tttle: "@ctitle(3,7)",
        name: "@cname",
        img: "@image(100x100,@color)",
        "id|+1": 1,
        "num|1-12": 1,
        "nummm|1-31": 1,
        "nuue|1-31": 1,
      },
    ],
    code: 2000,
  });
});
